package com.lhy.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lhy.admin.model.Permission;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface PermissionMapper extends BaseMapper<Permission> {

    List<Permission> listPermissionsByUserName(String name);

    List<Permission> listPermissionsByRoleName(String name);
}